Skip to content

Conversation

@joshua-spacetime
Copy link
Collaborator

Closes #471.

Description of Changes

API and ABI

  • This is a breaking change to the module ABI
  • This is a breaking change to the module API
  • This is a breaking change to the ClientAPI
  • This is a breaking change to the SDK API

If the API is breaking, please state below what will break

Expected complexity level and risk

How complicated do you think these changes are? Grade on a scale from 1 to 5,
where 1 is a trivial change, and 5 is a deep-reaching and complex change.

This complexity rating applies not only to the complexity apparent in the diff,
but also to its interactions with existing and future code.

If you answered more than a 2, explain what is complex about the PR,
and what other components it interacts with in potentially concerning ways.

Copy link
Contributor

@kulakowski kulakowski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The rest lgtm tho

}

#[derive(Debug, Display)]
pub enum SysCall {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd love to reconcile this with

Identity,
Address,
TransactionType,
SysCall,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We've waffled a lot on calling this syscalls vs abicalls vs... what. And even in this PR you say SysCall here but wasm_abi_call elsewhere.

Let's pick one.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's really an abi call. I'll update.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would argue it's really a syscall where SpacetimeDB is the OS. Happy to resolve the bikeshedding in a separate PR though.

@joshua-spacetime joshua-spacetime merged commit d1cbef2 into master Oct 30, 2023
@joshua-spacetime joshua-spacetime deleted the joshua/perf/471/sys-call-metric branch October 30, 2023 21:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Record duration metric for wasm abi calls

4 participants